-- GENERATED SPELL FOR [Amani Dragonhawk Hatchling] --


function spell0_23598(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(43299,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23598', 579, 1)
end

function Sorts_23598(pUnit, Event)
local choix_sorts_23598 = math.random(0, 0)
if choix_sorts_23598 == 0 then
pUnit:RegisterEvent('spell0_23598', 1, 1)
end
end

function mob23598_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23598', math.random(1500, 3000), 1)
end

function mob23598_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23598_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23598_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23598, 1, 'mob23598_Action')
RegisterUnitEvent(23598, 2, 'mob23598_Leave')
RegisterUnitEvent(23598, 3, 'mob23598_Kill')
RegisterUnitEvent(23598, 4, 'mob23598_Die')
